package com.fengchao.api.dao.odr;

import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.odr.OdrTicketInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OdrTicketInfoMapper extends BaseMapper<OdrTicketInfo> {

    /**
     * 根据userId查询票
     *
     * @param usrId
     * @return
     */
    List<OdrTicketInfo> findOdrTicketInfoByUserId(@Param("userId") Integer usrId, @Param("start") Integer start, @Param("count") Integer count);


    /**
     * 根据ticketSerialNumber 查询
     *
     * @param ticketSerialNumber
     * @return
     */
    OdrTicketInfo findOdrTicketInfoByTicketSerialNumber(String ticketSerialNumber);


}